<?php

namespace app\home\controller;

use think\Controller;
use think\Loader;
use think\Request;

class index extends Controller
{
    /**
     * 显示资源列表
     */
    public function index()
    {
        $se_commodity = Loader::model('commodity')->Selling();
        $sg_ccolumn = Loader::model('commodity')->columnInfo();
        foreach ($se_commodity as &$v){
            $v['image'] = explode('|',$v['image'])[1];
        }
        $this->assign('se_commodity',$se_commodity);
        $this->assign('columnInfo',$sg_ccolumn);
        return view();
    }
}
